﻿using UnityEngine;
using System.Collections;

public class door : MonoBehaviour {

	private Transform m_Transform;
	void Start () {
		m_Transform = gameObject.GetComponent<Transform> ();
	}
	

	public void OpenDoor(){
		m_Transform.Rotate (Vector3.up,90f);
	}

	public void CloseDoor(){
		m_Transform.Rotate (Vector3.up,-90f);
	}
}
